<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>TweenMax</title>
    <style type="text/css">
    .grey{ width: 100px; height: 100px; border: 1px solid #DDD; }
    </style>
</head>
<body>
    <div class="grey greyA1">greyA1</div>
    <div class="grey greyA2">greyA2</div>

    <div class="grey greyB1">greyB1</div>
    <div class="grey greyB2">greyB2</div>

    <div class="grey greyC1">greyC1</div>
    <div class="grey greyC2">greyC2</div>
</body>
<script src="https://www.tweenmax.com.cn/greensock-js/minified/TweenMax.min.js"></script>
<script type="text/javascript">
//TweenMax.delayedCall( delay:Number, callback:Function, params:Array, scope:*, useFrames:Boolean ) : TweenMax
//提供一种在设定的时间（或帧）后调用函数的简单方法。

var myTween1 = new TweenMax('.greyA1', 3, {
    x: 500,
})
var myTween2 = TweenMax.delayedCall(1, myFunction, ["参数1","参数2"])
function myFunction(param1, param2) {
   console.log("延迟2秒输出"+param1+'和'+param2);
   alert("延迟2秒输出"+param1+'和'+param2);
}
</script>
</html>
